package com.luo.service;

import com.luo.spring.LuoApplicationContext;

public class Test {
    public static void main(String[] args) {
        LuoApplicationContext luoApplicationContext = new LuoApplicationContext(AppConfig.class);
        UserService userService = (UserService) luoApplicationContext.getBean("user");
        Object userService1 = luoApplicationContext.getBean("user");
        Object userService2 = luoApplicationContext.getBean("user");
        System.out.println(userService.getOrderService());
        System.out.println(userService.getName());
        System.out.println(userService.getUser().toString());
        System.out.println(userService1);
        System.out.println(userService2);
    }
}
